package org.apache.dubbo.demo.consumer.example.eg8;

import org.apache.dubbo.demo.example.eg8.DemoService;
import org.apache.dubbo.demo.example.eg8.User;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Application {

  public static void main(String[] args) {
    ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath:example/eg8/applicationContext.xml");
    DemoService demoService = (DemoService) context.getBean("demoService");

    User user = new User();
    user.setName("xufeng");
    user.setEmail("909012366@qq.com");
    String result = demoService.sayHello(user);
    System.out.println("*********************** result: " + result + " ***********************");
  }
}
